package cn.ojh.domain;

import java.util.HashMap;
import java.util.Map;

import com.alibaba.fastjson.JSON;

public class ArticleType {
    private Long id;

    private String name;

    private String code;

    private Byte status;

    private Integer sort;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
    
    public String getJsonData(){
    	Map<String,Object> button = new HashMap<>();
    	button.put("id",this.id);
    	button.put("name",this.name);
    	button.put("code",this.code);
    	button.put("status",this.status);
    	button.put("sort",this.sort);
    	return JSON.toJSONString(button);
    }
}